package cn.hongwei.service;

import cn.hongwei.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Great
 * @email 1224028994@qq.com
 */
@Service
@Transactional
public class UserService {
    @Autowired
    private UserDao userDao;

    public void addUser(String username,String password){
        userDao.addUser(username,password);
        int i=10/0;
    }
}
